package com.school.cloud.seervice;

import com.school.cloud.entities.CommonResult;
import com.school.cloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * 功能描述：
 *
 * @Package: com.school.cloud.seervice
 * @author: Marvin-zl
 * @date: 2022/5/15 20:17
 */
@Component
public class PaymentFallbackService implements PaymentService{

    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444,"服务降级返回,没有该流水信息",new Payment(id, "errorSerial......"));
    }
}
